package com.skygrass.caesar.consumer;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.client.RestTemplate;

import com.skygrass.caesar.consumer.annotation.ComponentScanExclude;

//@EnableEurekaClient
//@EnableCircuitBreaker
//@EnableHystrix
//@EnableHystrixDashboard
//@SpringBootApplication
//@RibbonClient(name = "caesar.provider", configuration = ServiceLoadConfig.class)
@EnableFeignClients
//@EnableZuulProxy
@SpringBootApplication
@ComponentScan(excludeFilters =
{ @ComponentScan.Filter(value = ComponentScanExclude.class) })
public class ConsumerApplication
{

	public static void main(String[] args)
	{
		SpringApplication.run(ConsumerApplication.class, args);
	}

	@Bean
	@LoadBalanced
	RestTemplate restTemplate()
	{
		return new RestTemplate();
	}
}
